package com.example.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/")
@RestController
public class RedisController {

	@Value("${redis.host}")
	private String host;
	@Value("${redis.port}")
	private int port;
	
	@RequestMapping("/get")
	public String get() {
		return host + " : " + port;
	}
	
}
